﻿@{
    ViewBag.Title = "产品列表";
    Layout = "~/Areas/Shared/_spEdit.cshtml";
   
}
@using Kaiser.Extensions
@model Kaiser.Modules.Cubic.DomainModel.Advert.AdvertSpace
<form method="post">

    <table style="width: 100%">
        <tr>
            <td style="width: 10%">Code：
            </td>
            <td>
                @if (string.IsNullOrEmpty(Model.Id))
                {
                    @Html.TextBoxFor(m => Model.Code, new { @Class = "easyui-validatebox", @required = "true", width = "100%" })
                }
                else
                {
                    @Html.LabelFor(M => Model.Code)
                }

            </td>
        </tr>
        <tr>
            <td>标题：
            </td>
            <td>
                @Html.Hidden("Id", Model.Id)
                @Html.TextBoxFor(m => Model.Title, new { @Class = "easyui-validatebox", @required = "true", width = "100%" })
            </td>
        </tr>

        <tr>
            <td>模板：
            </td>
            <td>
                @Html.TextAreaFor(m => Model.Template, new { @Class = "easyui-validatebox", @rows = "5", @required = "true", width = "100%" })

            </td>
        </tr>
        <tr>
            <td>是否发布：
            </td>
            <td>
                @Html.CheckBoxFor(m => Model.IsValid, new { @Class = "easyui-validatebox", @required = "true" })是
            </td>
        </tr>
        <tr>
            <td>备注：
            </td>
            <td>
                @Html.TextBoxFor(m => Model.Remark, new { @Class = "easyui-validatebox", @required = "true", width = "100%" })
            </td>
        </tr>
    </table>
</form>

